<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <router-link to="/">首页</router-link>
  </div>
</template>

<script>
export default {
  /* 异步获取数据
  name: 'async',
  metaInfo () {
    return {
      title: this.pageName
    }
  },*/
  metaInfo: {
    title: 'My Example App', // set a title
    meta: [{                 // set meta
      name: 'keyWords',
      content: 'My Example App'
    }],
    link: [{                 // set link
      rel: 'asstes',
      href: 'https://assets-cdn.github.com/'
    }]
  },
  name: 'PrerenderTest',
  data () {
    return {
      msg: 'PrerenderTest hello world'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
